﻿#ifndef __LUA_SCOPE_H__
#define __LUA_SCOPE_H__

#include "./luaregistration.h"

#define END_SCOPE Scope(NULL)

class Scope
{
public:
    Scope(Registration* pReg);
    virtual ~Scope();
    const Scope& operator,(const Scope& scope) const;
    virtual void Register(lua_State* luaState, bool bGlobal) const;
protected:
    Registration* m_pReg;
};

#endif